package com.spongebob.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.spongebob.dao.SessionMessageMapper;
import com.spongebob.pojo.SessionMessage;
import com.spongebob.service.SessionMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 会话管理 服务实现类
 * </p>
 *
 * @author tutu
 * @since 2021-03-16
 */
@Service
public class SessionMessageServiceImpl extends ServiceImpl<SessionMessageMapper, SessionMessage> implements SessionMessageService {

    @Autowired
    private SessionMessageMapper sessionMessageMapper;

    @Override
    public List<Integer> selectAllSessionById(Integer customerServiceId) {
        return sessionMessageMapper.selectAllSession(customerServiceId);
    }
}
